WIP: Game Automation via Actions Workflow #362
Draft
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request introduces a comprehensive game progress tracking system, including a React-based UI, a JSON data structure for storing game progress, and automation scripts for updating logs via GitHub Actions. The key changes focus on implementing the tracking functionality, creating an update workflow, and ensuring seamless integration with version control.
Frontend Implementation:
automation/game-progress.tsx
: Added a React component to display game progress, including logs with hours played, completion percentage, and trackable items. Sorting functionality ensures games are displayed by the most recently updated.Data Structure:
automation/progress.json
: Defined a JSON structure to store game progress data, including start dates, logs, and trackable items for multiple games.Automation Workflow:
automation/update-gamelog.yml
: Created a GitHub Actions workflow to update game logs. This includes inputs for game title, hours played, completion percentage, and trackables, and automates pull request creation and merging.Backend Script:
automation/update-progress.js
: Implemented a Node.js script to update theprogress.json
file with new log entries, calculate deltas for hours, completion, and trackables, and ensure data integrity.